  <table id="dates">
    <thead>
    <tr>
      <th title="Sunday">S</th>
      <th title="Monday">M</th>
      <th title="Tuesday">T</th>
      <th title="Wednesday">W</th>
      <th title="Thursday">T</th>
      <th title="Friday">F</th>
      <th title="Saturday">S</th>
    </tr>
    </thead>
    <tbody>
    <tr>
      {foreach from=$june key=day_no item=i}
          {if $day_no == 1 && $i.week_day > 0}
            <td colspan="{$i.week_day - 1}"> </td>
          {/if}
          <td>
            {if $i.fixtures}
              <a href="/{$lang}/fixtures/{$i.date}" id="date_{$i.date}">
            {/if}
            
            {$i.date|date_format:"%d"}
            
            {if $i.fixtures}
              </a>
            {/if}
          </td>
          {if $i.week_day == 6}
            </tr><tr>
          {/if}
          {if $day_no == 30 && $i.week_day < 6}
            <td colspan="{6 - $i.week_day}"> </td>
          {/if}
      {/foreach}
    </tr>
    </tbody>
      </table>
